	.arch armv6
	.eabi_attribute 28, 1
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 1
	.eabi_attribute 18, 4
	.file	"lx_cp.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: %s source destination\012\000"
	.align	2
.LC1:
	.ascii	"Cannot open\000"
	.align	2
.LC2:
	.ascii	"Cannot creat\000"
	.align	2
.LC3:
	.ascii	"Write error to\000"
	.align	2
.LC4:
	.ascii	"Read error from\000"
	.align	2
.LC5:
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"Error closing files\000"
	.text
	.align	2
	.global	main
	.arch armv6
	.syntax unified
	.arm
	.fpu vfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #24
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r1, [r3, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-20]
	cmp	r3, #3
	beq	.L2
	ldr	r3, .L11
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L11+4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+8
	bl	oops
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, #420
	mov	r0, r3
	bl	creat
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L5
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+12
	bl	oops
	b	.L5
.L6:
	ldr	r2, [fp, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	beq	.L5
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+16
	bl	oops
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	read
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L6
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-24]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+20
	bl	oops
.L7:
	ldr	r0, [fp, #-8]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	beq	.L8
	ldr	r0, [fp, #-12]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
.L8:
	ldr	r1, .L11+24
	ldr	r0, .L11+28
	bl	oops
.L9:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Error: %s\000"
	.text
	.align	2
	.global	oops
	.syntax unified
	.arm
	.fpu vfp
	.type	oops, %function
oops:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L14+4
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-12]
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	.align	2
.L14:
	.word	stderr
	.word	.LC7
	.size	oops, .-oops
	.ident	"GCC: (Raspbian 8.3.0-6+rpi1) 8.3.0"
	.section	.note.GNU-stack,"",%progbits
